<div class="row">
  <div id="breadcrumb" class="col-md-12">
    <ol class="breadcrumb">
      <li><a ui-sref="layout.main">主页</a></li>
      <li><a ui-sref="layout.list.att_item">考勤项列表</a></li>
      <li><a href="javascript:;">考勤项详细信息</a></li>
    </ol>
  </div>
</div>
<div class="well" style="background-color: #FFFFFF;">
  <div class="row">
    <div class="col-xs-12">
      <h3> 添加考勤项 </h3>
    </div>
  </div>
  <hr />
  <div class="row">
    <div class="col-xs-12">
      <form class="form-horizontal">
        <div class="form-group">
          <label class="col-sm-2 control-label">编号</label>
          <div class="col-sm-10">
            <input type="text" ng-model="att_itemItem.id" class="form-control" ng-disabled="true">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">考勤项名称</label>
          <div class="col-sm-10">
            <input type="text" ng-model="att_itemItem.att_item_name" class="form-control" ng-disabled="update">
          </div>
        </div>


        <div class="form-group">
          <label class="col-sm-2 control-label">考勤项类型</label>
          <div class="col-sm-10">
            <ui-select ng-model="att_itemItem.att_type" theme="select2" ng-disabled="update" style="min-width: 100%;">
              <ui-select-match>
                {{$select.selected.att_type_name}}
              </ui-select-match>
              <ui-select-choices repeat="att_typeItem.id as att_typeItem in att_type | filter : {att_type_name : $select.search}">
                <div ng-bind-html="att_typeItem.att_type_name | highlight: $select.search"></div>
              </ui-select-choices>
            </ui-select>
          </div>
        </div>

        <div class="form-group">
          <label class="col-sm-2 control-label">考勤项加扣分情况</label>
          <div class="col-sm-10">
            <!-- <input type="text" ng-model="att_itemItem.att_item_score" class="form-control" ng-disabled="update"> -->
            <div class="input-group" style="width: 120px;">
              <span class="input-group-btn">
                <button class="btn btn-default" type="button" ng-click="reduceScore()" ng-disabled="update">-</button>
              </span>
              <input type="text" class="form-control" ng-model="att_itemItem.att_item_score" readonly="readonly"  />
              <span class="input-group-btn">
                <button class="btn btn-default" type="button" ng-click="addScore()" ng-disabled="update">+</button>
              </span>
            </div><!-- /input-group -->
          </div>
        </div>

        <div class="form-group">
          <div class="col-xs-2"></div>
          <div class="col-xs-2">
            <button class="btn btn-block btn-success" ng-click="add()" ng-if="!update">确认修改</button>
          </div>
          <div class="col-xs-2">
            <input class="btn btn-block btn-danger" ng-click="back()" type="button" ng-if="!update" value="取消" />
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
